<%@page language="java" pageEncoding="UTF-8"%>
<%@page import="java.util.Enumeration,com.opensymphony.xwork2.ognl.OgnlValueStack"%>
<%@page contentType="text/html;charset=UTF-8"%>
<%@page isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Admin</title>

		<link rel="stylesheet" href="css/style.css" type="text/css" />
		
		<script type="text/javascript" src="${pageContext.request.contextPath}/backstage/scripts/jquery-1.6.min.js"></script>
		
		<!--[if IE]>
		<link rel="stylesheet" type="text/css" media="all" href="css/ie.css"/>
		<script src="js/html5.js"></script>
		<![endif]-->
		<!--[if lt IE 8]>
		<script src="js/IE8.js"></script>
		<![endif]-->
	</head>
	<body>
		<!-- Header -->
	<header id="top">
		<div class="wrapper">
			<div id="title"><img src="${pageContext.request.contextPath}/backstage/images/logo.png" alt="Administry" /></div>
			<div id="topnav">
				<a href="#"><img class="avatar" src="${pageContext.request.contextPath}/backstage/images/user_32.png"/></a>
				登陆用户 <b>${staff.sysName}</b>
				<span>|</span> <a href="#">退出</a><br />
				<small>你有
				<s:if test="#session.staff.info.size() > 0">
					<a href="#" class="high"><b>${fn:length(staff.info)}</b> 新消息!</a>
				</s:if>
				<s:else>
					0 新消息!
				</s:else>
				</small>
			</div>
			<nav id="menu">
				<ul class="sf-menu">
					<c:forEach items="${ session.list }" var="vo">
						<c:if test="${vo.labeling == param.operation}">
							<li class="current">
								<a href="${fn:trim(vo.url)}">${fn:trim(vo.name)}</a>
								<c:if test="${fn:length(vo.children) > 0 }">
									<ul>
										<c:forEach items="${ vo.children }" var="voc">
											<li>
												<a href="${fn:trim(voc.url)}">${fn:trim(voc.name)}</a>
											</li>
										</c:forEach>
									</ul>
								</c:if>
							</li>
						</c:if>
						<c:if test="${vo.labeling != param.operation}">
							<li>
								<a href="${fn:trim(vo.url)}">${fn:trim(vo.name)}</a>
								<c:if test="${fn:length(vo.children) > 0 }">
									<ul>
										<c:forEach items="${ vo.children }" var="voc">
											<li>
												<a href="${fn:trim(voc.url)}">${fn:trim(voc.name)}</a>
											</li>
										</c:forEach>
									</ul>
								</c:if>
							</li>
						</c:if>
					</c:forEach>
				</ul>
			</nav>
		</div>
	</header>
